package com.worthtech.billportal.bean;

import java.util.Date;

/**
 * WtMerTmkInfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtMerTmkInfoId implements java.io.Serializable {

	// Fields

	private String sekIdx;
	private String sekVal;
	private String tekIdx;
	private String tekVal;
	private String chkVal;
	private Long valLen;
	private String tmkFlag;
	private String mercode;
	private String termcode;
	private Date crtDate;
	private Date updDate;
	private String ptFlag;
	private String mgrInsIdCd;
	private String mgrMnKeyIndex;

	// Constructors

	/** default constructor */
	public WtMerTmkInfoId() {
	}

	/** minimal constructor */
	public WtMerTmkInfoId(String sekIdx, String sekVal, String tekIdx,
			String tekVal) {
		this.sekIdx = sekIdx;
		this.sekVal = sekVal;
		this.tekIdx = tekIdx;
		this.tekVal = tekVal;
	}

	/** full constructor */
	public WtMerTmkInfoId(String sekIdx, String sekVal, String tekIdx,
			String tekVal, String chkVal, Long valLen, String tmkFlag,
			String mercode, String termcode, Date crtDate, Date updDate,
			String ptFlag, String mgrInsIdCd, String mgrMnKeyIndex) {
		this.sekIdx = sekIdx;
		this.sekVal = sekVal;
		this.tekIdx = tekIdx;
		this.tekVal = tekVal;
		this.chkVal = chkVal;
		this.valLen = valLen;
		this.tmkFlag = tmkFlag;
		this.mercode = mercode;
		this.termcode = termcode;
		this.crtDate = crtDate;
		this.updDate = updDate;
		this.ptFlag = ptFlag;
		this.mgrInsIdCd = mgrInsIdCd;
		this.mgrMnKeyIndex = mgrMnKeyIndex;
	}

	// Property accessors

	public String getSekIdx() {
		return this.sekIdx;
	}

	public void setSekIdx(String sekIdx) {
		this.sekIdx = sekIdx;
	}

	public String getSekVal() {
		return this.sekVal;
	}

	public void setSekVal(String sekVal) {
		this.sekVal = sekVal;
	}

	public String getTekIdx() {
		return this.tekIdx;
	}

	public void setTekIdx(String tekIdx) {
		this.tekIdx = tekIdx;
	}

	public String getTekVal() {
		return this.tekVal;
	}

	public void setTekVal(String tekVal) {
		this.tekVal = tekVal;
	}

	public String getChkVal() {
		return this.chkVal;
	}

	public void setChkVal(String chkVal) {
		this.chkVal = chkVal;
	}

	public Long getValLen() {
		return this.valLen;
	}

	public void setValLen(Long valLen) {
		this.valLen = valLen;
	}

	public String getTmkFlag() {
		return this.tmkFlag;
	}

	public void setTmkFlag(String tmkFlag) {
		this.tmkFlag = tmkFlag;
	}

	public String getMercode() {
		return this.mercode;
	}

	public void setMercode(String mercode) {
		this.mercode = mercode;
	}

	public String getTermcode() {
		return this.termcode;
	}

	public void setTermcode(String termcode) {
		this.termcode = termcode;
	}

	public Date getCrtDate() {
		return this.crtDate;
	}

	public void setCrtDate(Date crtDate) {
		this.crtDate = crtDate;
	}

	public Date getUpdDate() {
		return this.updDate;
	}

	public void setUpdDate(Date updDate) {
		this.updDate = updDate;
	}

	public String getPtFlag() {
		return this.ptFlag;
	}

	public void setPtFlag(String ptFlag) {
		this.ptFlag = ptFlag;
	}

	public String getMgrInsIdCd() {
		return this.mgrInsIdCd;
	}

	public void setMgrInsIdCd(String mgrInsIdCd) {
		this.mgrInsIdCd = mgrInsIdCd;
	}

	public String getMgrMnKeyIndex() {
		return this.mgrMnKeyIndex;
	}

	public void setMgrMnKeyIndex(String mgrMnKeyIndex) {
		this.mgrMnKeyIndex = mgrMnKeyIndex;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtMerTmkInfoId))
			return false;
		WtMerTmkInfoId castOther = (WtMerTmkInfoId) other;

		return ((this.getSekIdx() == castOther.getSekIdx()) || (this
				.getSekIdx() != null
				&& castOther.getSekIdx() != null && this.getSekIdx().equals(
				castOther.getSekIdx())))
				&& ((this.getSekVal() == castOther.getSekVal()) || (this
						.getSekVal() != null
						&& castOther.getSekVal() != null && this.getSekVal()
						.equals(castOther.getSekVal())))
				&& ((this.getTekIdx() == castOther.getTekIdx()) || (this
						.getTekIdx() != null
						&& castOther.getTekIdx() != null && this.getTekIdx()
						.equals(castOther.getTekIdx())))
				&& ((this.getTekVal() == castOther.getTekVal()) || (this
						.getTekVal() != null
						&& castOther.getTekVal() != null && this.getTekVal()
						.equals(castOther.getTekVal())))
				&& ((this.getChkVal() == castOther.getChkVal()) || (this
						.getChkVal() != null
						&& castOther.getChkVal() != null && this.getChkVal()
						.equals(castOther.getChkVal())))
				&& ((this.getValLen() == castOther.getValLen()) || (this
						.getValLen() != null
						&& castOther.getValLen() != null && this.getValLen()
						.equals(castOther.getValLen())))
				&& ((this.getTmkFlag() == castOther.getTmkFlag()) || (this
						.getTmkFlag() != null
						&& castOther.getTmkFlag() != null && this.getTmkFlag()
						.equals(castOther.getTmkFlag())))
				&& ((this.getMercode() == castOther.getMercode()) || (this
						.getMercode() != null
						&& castOther.getMercode() != null && this.getMercode()
						.equals(castOther.getMercode())))
				&& ((this.getTermcode() == castOther.getTermcode()) || (this
						.getTermcode() != null
						&& castOther.getTermcode() != null && this
						.getTermcode().equals(castOther.getTermcode())))
				&& ((this.getCrtDate() == castOther.getCrtDate()) || (this
						.getCrtDate() != null
						&& castOther.getCrtDate() != null && this.getCrtDate()
						.equals(castOther.getCrtDate())))
				&& ((this.getUpdDate() == castOther.getUpdDate()) || (this
						.getUpdDate() != null
						&& castOther.getUpdDate() != null && this.getUpdDate()
						.equals(castOther.getUpdDate())))
				&& ((this.getPtFlag() == castOther.getPtFlag()) || (this
						.getPtFlag() != null
						&& castOther.getPtFlag() != null && this.getPtFlag()
						.equals(castOther.getPtFlag())))
				&& ((this.getMgrInsIdCd() == castOther.getMgrInsIdCd()) || (this
						.getMgrInsIdCd() != null
						&& castOther.getMgrInsIdCd() != null && this
						.getMgrInsIdCd().equals(castOther.getMgrInsIdCd())))
				&& ((this.getMgrMnKeyIndex() == castOther.getMgrMnKeyIndex()) || (this
						.getMgrMnKeyIndex() != null
						&& castOther.getMgrMnKeyIndex() != null && this
						.getMgrMnKeyIndex()
						.equals(castOther.getMgrMnKeyIndex())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSekIdx() == null ? 0 : this.getSekIdx().hashCode());
		result = 37 * result
				+ (getSekVal() == null ? 0 : this.getSekVal().hashCode());
		result = 37 * result
				+ (getTekIdx() == null ? 0 : this.getTekIdx().hashCode());
		result = 37 * result
				+ (getTekVal() == null ? 0 : this.getTekVal().hashCode());
		result = 37 * result
				+ (getChkVal() == null ? 0 : this.getChkVal().hashCode());
		result = 37 * result
				+ (getValLen() == null ? 0 : this.getValLen().hashCode());
		result = 37 * result
				+ (getTmkFlag() == null ? 0 : this.getTmkFlag().hashCode());
		result = 37 * result
				+ (getMercode() == null ? 0 : this.getMercode().hashCode());
		result = 37 * result
				+ (getTermcode() == null ? 0 : this.getTermcode().hashCode());
		result = 37 * result
				+ (getCrtDate() == null ? 0 : this.getCrtDate().hashCode());
		result = 37 * result
				+ (getUpdDate() == null ? 0 : this.getUpdDate().hashCode());
		result = 37 * result
				+ (getPtFlag() == null ? 0 : this.getPtFlag().hashCode());
		result = 37
				* result
				+ (getMgrInsIdCd() == null ? 0 : this.getMgrInsIdCd()
						.hashCode());
		result = 37
				* result
				+ (getMgrMnKeyIndex() == null ? 0 : this.getMgrMnKeyIndex()
						.hashCode());
		return result;
	}

}